const Mock = require('mockjs')
const fs = require('fs');
const data = Mock.mock({
  "list|100": [{
    "id": "@id",
    "title": '@ctitle',
    "word": '@cword(20, 30)',
    "price|10-1000": 1,
    "image": "https://robohash.org/@id?sets=set@integer(1,4)",
  }]
})

fs.writeFileSync("data.json", JSON.stringify(data.list))